package com.chengqs.dfs.namenode.server;

/**
 * <B>主类名称：</B>DataNodeInfo<BR>
 * <B>概要说明：</B>用来描述datanode的信息<BR>
 *
 * @author: chengqs
 * @create: 2025-03-30 03:47:00
 **/
public class DataNodeInfo {
    private String ip;
    private String hostname;
    private long latestHeartbeatTime = System.currentTimeMillis();

    public DataNodeInfo(String ip, String hostname) {
        this.ip = ip;
        this.hostname = hostname;
    }

    public String getIp() {
        return ip;
    }
    public void setIp(String ip) {
        this.ip = ip;
    }
    public String getHostname() {
        return hostname;
    }
    public void setHostname(String hostname) {
        this.hostname = hostname;
    }

    public long getLatestHeartbeatTime() {
        return latestHeartbeatTime;
    }

    public void setLatestHeartbeatTime(long latestHeartbeatTime) {
        this.latestHeartbeatTime = latestHeartbeatTime;
    }
}
